package com.ctgu.examonline.dao;

import com.ctgu.examonline.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeacherDao {

    //保存
    void save(Teacher teacher);

    //删除
    void remove(Integer tea_no);

    //更新
    void update(Teacher teacher);

    //通过工号密码查询 -- 登录
    Teacher findByNoAndPassword(@Param("tea_no") Integer tea_no, @Param("tea_pwd") String tea_pwd);

    //获取所有教师信息
    List<Teacher> listAllTeacherInfo();
}
